<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var obj={
			
		};
		Object.defineProperty(obj,"a",{
			value:"a",
			enumerable:true
		});
		Object.defineProperty(obj,"b",{
			value:"b",
			enumerable:false
		});
		
		console.log(obj.propertyIsEnumerable("a"));//true
		console.log(obj.propertyIsEnumerable("b"));//false
		
		
		console.log(Object.keys(obj));//["a"]
		console.log(Object.getOwnPropertyNames(obj));//["a", "b"]
		
	</script>
</html>
